-- GENERATED SPELL FOR [Gordok Ogre-Mage] --


function spell0_11443(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11443', 30257, 1)
end

function spell1_11443(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20823,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11443', 3000, 1)
end

function Sorts_11443(pUnit, Event)
local choix_sorts_11443 = math.random(0, 1)
if choix_sorts_11443 == 0 then
pUnit:RegisterEvent('spell0_11443', 1, 1)
end
if choix_sorts_11443 == 1 then
pUnit:RegisterEvent('spell1_11443', 1, 1)
end
end

function mob11443_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11443', math.random(1500, 3000), 1)
end

function mob11443_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11443_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11443_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11443, 1, 'mob11443_Action')
RegisterUnitEvent(11443, 2, 'mob11443_Leave')
RegisterUnitEvent(11443, 3, 'mob11443_Kill')
RegisterUnitEvent(11443, 4, 'mob11443_Die')
